package com.crm.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "Notice",description = "通知")
public class Notice {

    @ApiModelProperty(value = "创建人", example = "admin")
    private String createBy;

    @ApiModelProperty(value = "创建时间", example = "2021-04-12 07:54:12")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人", example = "")
    private String updateBy;

    @ApiModelProperty(value = "更新时间", example = "null")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "通知ID", example = "10")
    private Long noticeId;

    @ApiModelProperty(value = "通知标题", example = "test")
    private String noticeTitle;

    @ApiModelProperty(value = "通知类型", example = "1")
    private String noticeType;

    @ApiModelProperty(value = "通知内容", example = "<p>test</p>")
    private String noticeContent;

    @ApiModelProperty(value = "状态", example = "1")
    private String status;

    @ApiModelProperty(value = "通知用户ID", example = "null")
    private Long noticeUserId;
}
